package com.punch.common.vo.system.category;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * CategoryTreeVO-TODO
 *
 * @author wujj
 * @version 1.0.0
 * @since 2020/7/24 15:34
 */
@Data
public class CategoryTreeVO implements Serializable {

    @ApiModelProperty(name = "categoryId", notes = "类目id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long categoryId;


    @ApiModelProperty(name = "categoryName", notes = "类目名称")
    private String categoryName;


    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<CategoryTreeVO> childList;
}
